//
//  CustomView.m
//  UI01-作业
//
//  Created by dllo on 16/6/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CustomView.h"

@implementation CustomView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
+ (instancetype)customViewWithFrame:(CGRect)frame
                              color:(UIColor *)color {
    CustomView *view = [[CustomView alloc]initWithFrame:frame];
    view.backgroundColor = color;
    return [view autorelease];
    
}
@end
